<% if logged_in? %>
  <%= link_to "Настройка", :controller => "settings" %> | <%= link_to "Выйти", :controller => "account", :action => "logout" %>
<% end %>
